package com.zjhn.ds.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.param
 * @Author: sxt
 * @CreateTime: 2023-09-28  10:09
 * @Description:
 * @Version: 1.0
 */
@Data
public class AssignTaskParam {

    @ApiModelProperty("车间id")
    @JsonProperty("workshop_id")
    @NotBlank(message = "车间id不能为空")
    private String workshopId;

    @ApiModelProperty("生产明细id")
    @JsonProperty("pro_task_detail_id")
    @NotBlank(message = "生产明细不能为空")
    private String proTaskDetailId;

    @ApiModelProperty("派工信息")
    @NotEmpty(message = "派工信息不能为空")
    private List<AssignTaskBatchParam> tasks;

}
